<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

/**
 * TYPOlight webCMS
 *
 * The TYPOlight webCMS is an accessible web content management system that 
 * specializes in accessibility and generates W3C-compliant HTML code. It 
 * provides a wide range of functionality to develop professional websites 
 * including a built-in search engine, form generator, file and user manager, 
 * CSS engine, multi-language support and many more. For more information and 
 * additional TYPOlight applications like the TYPOlight MVC Framework please 
 * visit the project website http://www.typolight.org.
 *
 * This is the catalog configuration file.
 *
 * PHP version 5
 * @copyright  Martin Komara 2007 
 * @author     Martin Komara 
 * @package    CatalogModule 
 * @license    GPL 
 * @filesource
 */


/**
 * Back-end module
 */
array_insert($GLOBALS['BE_MOD'], 1, array('Daft' => array()));

$GLOBALS['BE_MOD']['Daft']['Product catalog'] = array
(
    'tables'       	=> array('tl_catalog_types', 'tl_catalog_fields', 'tl_catalog_items'),
    'icon'         	=> 'system/modules/catalog/html/icon.gif',
    'regenerateDca'	=> array('Catalog', 'regenerateAllDca'),
    'export'				=> array('Catalog', 'exportItems'),
);

if (TL_MODE == 'BE')
{
	$GLOBALS['TL_CSS'][] = 'system/modules/catalog/html/style.css'; 
}

/**
 * Front-end module
 */

$GLOBALS['FE_MOD']['catalog'] = array
(
	'cataloglisting' 		=> 'ModuleCatalogListing',
	'catalogtoday'			=> 'ModuleCatalogToday'
);

/**
 * HOOK Permissions
 */
 
$GLOBALS['TL_PERMISSIONS'][] = 'catalogs'; 


?>